/**
 * 用于 banner 模块
 */
const Pager = require('../../components/aotoo/core/index')
const lib = Pager.lib

module.exports = function(params={}) {
  let dft = {
    itemClass: 'search-box'
  }
  let opts = Object.assign({}, dft, params)

  return {
    itemClass: opts.itemClass,
    title: [
      {
        title: [
          {title: ' ', itemClass: 'item-search-icon'},
          {title: '搜索目的地/关键词', itemClass: 'item-search-wz'}
        ],
        titleClass: 'item-search',
        aim: 'onSearch'
      },
      {
        title: [
          {title: ' ', itemClass: 'item-dest-icon'},
          {title: '目的地', itemClass: 'item-dest-wz'}
        ],
        titleClass: 'item-dest',
        aim: 'onDest'
      },
    ],
    itemMethod: {
      onSearch() {
        console.log("跳转目的地搜索页面")
      },
      onDest() {
        console.log("跳转目的地列表页面")
      },
    }
  }
}
